package com.ysd.conf;

import com.ysd.service.DatabaseVersionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.stereotype.Component;

/**
 * @作者: prs
 * @日期: 2024-7-23
 * @功能: 监听文件
 * @版本: 1.0.0
 */
@Component
public class LicenseCheckListener implements ApplicationListener<ContextRefreshedEvent> {
    @Autowired
    DatabaseVersionService databaseVersionService;
    @Override
    public void onApplicationEvent(ContextRefreshedEvent event) {
        //databaseVersionService.upgradeDatabase();
        databaseVersionService.xtcsDataAuto();
    }
}
